if (ERPObj.status == "env_loaded")
{
	ERPObj.loadItem = function(strURL , strSection , strFunction , objReq , funCallBack )
	{
		objSend = new Object();
		objSend.data = objReq ;
		objSend.section = strSection;
		objSend.page = strFunction ;
		
		$.getJSon( strURL , objSend , funCallBack ) ;
	}
	
	ERPObj.addModule = function( itemName  , objItem)
	{
		//alert(itemName);	
		strCmd = "intExist = ((ERPObj."+itemName+")? 1 : 0 );";
		eval(strCmd);
		intExist = 0;
		
		if (!intExist)
		{
			strCmd = "ERPObj."+itemName+" = objItem;" ;
			eval(strCmd);
		
			strCmd = "ERPObj."+itemName+".init();" ;
			eval(strCmd);
		}
		
	}
	
	ERPObj.loadItem = function(strSection)
	{
		$.getScript(ERPObj.modulePath+strSection+".js");
	}
	
	ERPObj.status = "basic_loaded";
	ERPObj.loadNext();
}